function combinedArray(data1,data2){
    // 转换二维数组
    let a1 = []
    let a2 = []
        for(let i = 0; i < data1.length; i++){
            a1.push(Object.values(data1[i]))
        }
        for(let i = 0; i < data2.length; i++){
            a2.push(Object.values(data2[i]))
        }
    let oldArr1 = a1;
    let oldArr2 = a2;

    // 二维数组横纵转换
    const newArr1 = oldArr1[1].map((col,i) => oldArr1.map(row => row[i]));
    const newArr2 = oldArr2[0].map((col,i) => oldArr2.map(row => row[i]));
    // console.log('3333',newArr1);
    let newArr3 = newArr2[1]
    newArr1.push(newArr3)
    const newArr = newArr1[0].map((col,i) => newArr1.map(row => row[i]));
    // console.log(newArr);
    return newArr
}
function test(data1){
    let a1 = []
    for(let i = 0; i < data1.length; i++){
        a1.push(Object.values(data1[i]))
    }
    return a1
}

export default{
    combinedArray,
    test
}